home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / tcoop.arc / TCOOP2.ARC / WSOTST1.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-26  |  547 b   |  17 lines

  1. // wsotst1.cpp: This program displays a single pop-up window
  2.  
  3. #include "wsotxscr.h"
  4.  
  5. Wso *Window1;
  6.  
  7. main() 
  8. {
  9.   Setup(MouseOptional,MonoColors);    // Setup the environment
  10.   Window1 = new Wso(0x11, WindowStyle+Stretchable, RedColors);
  11.   FullScrn->Panel->Clear(176,0);      // Clear the full screen
  12.   Window1->SetSize(30, 10);
  13.   Window1->Open(FullScrn, 5, 5);      // Open the window on the screen
  14.   MainEventLoop();                    // The event loop takes over
  15.   CleanUp();                          // Remove all the objects
  16. }
  17.